<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%base_region}}".
 *
 * @property integer $id
 * @property string $region_name
 * @property integer $parent
 */
class BaseRegionModel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%base_region}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['parent'], 'integer'],
            [['region_name'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'region_name' => 'Region Name',
            'parent' => 'Parent',
        ];
    }
}
